"""
ASGI config for NoFish project.

It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""

import os
import django
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.wsgi import get_wsgi_application

from NoFish import routing
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NoFish.settings')


application = ProtocolTypeRouter({
    "http":get_wsgi_application(),
    "websocket":URLRouter(routing.websocket_urlpatterns)
})

